In [ ]:
import opengrid as og
from opengrid import datasets

In [ ]:
%matplotlib inline

In [ ]:
df = datasets.get('gas_dec2016_min')

In [ ]:
# we only want to demo on one sensor
ts = df['313b'].head(100)

In [ ]:
ts.plot()

We want to count the number of times the gas boiler switches on in this period


In [ ]:
og.analysis.count_peaks(ts)